﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="CourseManage.aspx.cs" Inherits="WebApplication1.CourseManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="Panel1" runat="server" Height="247px">
        <asp:GridView ID="gdvCourse" runat="server" onrowcreated="gdvCourse_RowCreated" 
            onrowdeleting="gdvCourse_RowDeleting" onrowediting="gdvCourse_RowEditing" >
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Button ID="btnEditCourse" Text="编辑" runat="server" CausesValidation="false" CommandName="Edit" />
                        <asp:Button ID="btnDeleteCourse" Text="删除" runat="server" CausesValidation="false"
                            CommandName="Delete" OnClientClick="return confirm('你确定要删除吗？')" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </asp:Panel>
    <p>
        <asp:Button ID="btnAdd" runat="server" Text="新增" OnClick="btnAdd_Click" />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btnBackSchoolManage" runat="server" 
            onclick="btnBackSchoolManage_Click" Text="返回学校管理" />
    </p>
</asp:Content>
